import { SetMetadata } from "@nestjs/common";
import { ObjectType } from "typeorm";
import { CUSTOM_REPOSITORY_METADATA } from "../constants";

//自定义仓库的类装饰
export const CustomRepositoryDecorator=<T>(entity:ObjectType <T>):ClassDecorator=>{
    return SetMetadata(CUSTOM_REPOSITORY_METADATA,entity)
}
